package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class TeacherDataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeacherDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTeacheridIsNull() {
            addCriterion("teacherId is null");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNotNull() {
            addCriterion("teacherId is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheridEqualTo(String value) {
            addCriterion("teacherId =", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotEqualTo(String value) {
            addCriterion("teacherId <>", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThan(String value) {
            addCriterion("teacherId >", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThanOrEqualTo(String value) {
            addCriterion("teacherId >=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThan(String value) {
            addCriterion("teacherId <", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThanOrEqualTo(String value) {
            addCriterion("teacherId <=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLike(String value) {
            addCriterion("teacherId like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotLike(String value) {
            addCriterion("teacherId not like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIn(List<String> values) {
            addCriterion("teacherId in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotIn(List<String> values) {
            addCriterion("teacherId not in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridBetween(String value1, String value2) {
            addCriterion("teacherId between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotBetween(String value1, String value2) {
            addCriterion("teacherId not between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeachernameIsNull() {
            addCriterion("teacherName is null");
            return (Criteria) this;
        }

        public Criteria andTeachernameIsNotNull() {
            addCriterion("teacherName is not null");
            return (Criteria) this;
        }

        public Criteria andTeachernameEqualTo(String value) {
            addCriterion("teacherName =", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotEqualTo(String value) {
            addCriterion("teacherName <>", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameGreaterThan(String value) {
            addCriterion("teacherName >", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameGreaterThanOrEqualTo(String value) {
            addCriterion("teacherName >=", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLessThan(String value) {
            addCriterion("teacherName <", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLessThanOrEqualTo(String value) {
            addCriterion("teacherName <=", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameLike(String value) {
            addCriterion("teacherName like", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotLike(String value) {
            addCriterion("teacherName not like", value, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameIn(List<String> values) {
            addCriterion("teacherName in", values, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotIn(List<String> values) {
            addCriterion("teacherName not in", values, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameBetween(String value1, String value2) {
            addCriterion("teacherName between", value1, value2, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachernameNotBetween(String value1, String value2) {
            addCriterion("teacherName not between", value1, value2, "teachername");
            return (Criteria) this;
        }

        public Criteria andTeachersexIsNull() {
            addCriterion("teacherSex is null");
            return (Criteria) this;
        }

        public Criteria andTeachersexIsNotNull() {
            addCriterion("teacherSex is not null");
            return (Criteria) this;
        }

        public Criteria andTeachersexEqualTo(String value) {
            addCriterion("teacherSex =", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexNotEqualTo(String value) {
            addCriterion("teacherSex <>", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexGreaterThan(String value) {
            addCriterion("teacherSex >", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexGreaterThanOrEqualTo(String value) {
            addCriterion("teacherSex >=", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexLessThan(String value) {
            addCriterion("teacherSex <", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexLessThanOrEqualTo(String value) {
            addCriterion("teacherSex <=", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexLike(String value) {
            addCriterion("teacherSex like", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexNotLike(String value) {
            addCriterion("teacherSex not like", value, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexIn(List<String> values) {
            addCriterion("teacherSex in", values, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexNotIn(List<String> values) {
            addCriterion("teacherSex not in", values, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexBetween(String value1, String value2) {
            addCriterion("teacherSex between", value1, value2, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeachersexNotBetween(String value1, String value2) {
            addCriterion("teacherSex not between", value1, value2, "teachersex");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberIsNull() {
            addCriterion("teacherphoneNumber is null");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberIsNotNull() {
            addCriterion("teacherphoneNumber is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberEqualTo(String value) {
            addCriterion("teacherphoneNumber =", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberNotEqualTo(String value) {
            addCriterion("teacherphoneNumber <>", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberGreaterThan(String value) {
            addCriterion("teacherphoneNumber >", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberGreaterThanOrEqualTo(String value) {
            addCriterion("teacherphoneNumber >=", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberLessThan(String value) {
            addCriterion("teacherphoneNumber <", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberLessThanOrEqualTo(String value) {
            addCriterion("teacherphoneNumber <=", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberLike(String value) {
            addCriterion("teacherphoneNumber like", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberNotLike(String value) {
            addCriterion("teacherphoneNumber not like", value, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberIn(List<String> values) {
            addCriterion("teacherphoneNumber in", values, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberNotIn(List<String> values) {
            addCriterion("teacherphoneNumber not in", values, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberBetween(String value1, String value2) {
            addCriterion("teacherphoneNumber between", value1, value2, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherphonenumberNotBetween(String value1, String value2) {
            addCriterion("teacherphoneNumber not between", value1, value2, "teacherphonenumber");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitIsNull() {
            addCriterion("teacherHeadPortrait is null");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitIsNotNull() {
            addCriterion("teacherHeadPortrait is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitEqualTo(String value) {
            addCriterion("teacherHeadPortrait =", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitNotEqualTo(String value) {
            addCriterion("teacherHeadPortrait <>", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitGreaterThan(String value) {
            addCriterion("teacherHeadPortrait >", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitGreaterThanOrEqualTo(String value) {
            addCriterion("teacherHeadPortrait >=", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitLessThan(String value) {
            addCriterion("teacherHeadPortrait <", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitLessThanOrEqualTo(String value) {
            addCriterion("teacherHeadPortrait <=", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitLike(String value) {
            addCriterion("teacherHeadPortrait like", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitNotLike(String value) {
            addCriterion("teacherHeadPortrait not like", value, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitIn(List<String> values) {
            addCriterion("teacherHeadPortrait in", values, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitNotIn(List<String> values) {
            addCriterion("teacherHeadPortrait not in", values, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitBetween(String value1, String value2) {
            addCriterion("teacherHeadPortrait between", value1, value2, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherheadportraitNotBetween(String value1, String value2) {
            addCriterion("teacherHeadPortrait not between", value1, value2, "teacherheadportrait");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIsNull() {
            addCriterion("teacherPassword is null");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIsNotNull() {
            addCriterion("teacherPassword is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordEqualTo(String value) {
            addCriterion("teacherPassword =", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotEqualTo(String value) {
            addCriterion("teacherPassword <>", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordGreaterThan(String value) {
            addCriterion("teacherPassword >", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("teacherPassword >=", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLessThan(String value) {
            addCriterion("teacherPassword <", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLessThanOrEqualTo(String value) {
            addCriterion("teacherPassword <=", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordLike(String value) {
            addCriterion("teacherPassword like", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotLike(String value) {
            addCriterion("teacherPassword not like", value, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordIn(List<String> values) {
            addCriterion("teacherPassword in", values, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotIn(List<String> values) {
            addCriterion("teacherPassword not in", values, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordBetween(String value1, String value2) {
            addCriterion("teacherPassword between", value1, value2, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andTeacherpasswordNotBetween(String value1, String value2) {
            addCriterion("teacherPassword not between", value1, value2, "teacherpassword");
            return (Criteria) this;
        }

        public Criteria andMynicknameIsNull() {
            addCriterion("mynickname is null");
            return (Criteria) this;
        }

        public Criteria andMynicknameIsNotNull() {
            addCriterion("mynickname is not null");
            return (Criteria) this;
        }

        public Criteria andMynicknameEqualTo(String value) {
            addCriterion("mynickname =", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotEqualTo(String value) {
            addCriterion("mynickname <>", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameGreaterThan(String value) {
            addCriterion("mynickname >", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameGreaterThanOrEqualTo(String value) {
            addCriterion("mynickname >=", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLessThan(String value) {
            addCriterion("mynickname <", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLessThanOrEqualTo(String value) {
            addCriterion("mynickname <=", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLike(String value) {
            addCriterion("mynickname like", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotLike(String value) {
            addCriterion("mynickname not like", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameIn(List<String> values) {
            addCriterion("mynickname in", values, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotIn(List<String> values) {
            addCriterion("mynickname not in", values, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameBetween(String value1, String value2) {
            addCriterion("mynickname between", value1, value2, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotBetween(String value1, String value2) {
            addCriterion("mynickname not between", value1, value2, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMybirthdIsNull() {
            addCriterion("mybirthd is null");
            return (Criteria) this;
        }

        public Criteria andMybirthdIsNotNull() {
            addCriterion("mybirthd is not null");
            return (Criteria) this;
        }

        public Criteria andMybirthdEqualTo(String value) {
            addCriterion("mybirthd =", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotEqualTo(String value) {
            addCriterion("mybirthd <>", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdGreaterThan(String value) {
            addCriterion("mybirthd >", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdGreaterThanOrEqualTo(String value) {
            addCriterion("mybirthd >=", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLessThan(String value) {
            addCriterion("mybirthd <", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLessThanOrEqualTo(String value) {
            addCriterion("mybirthd <=", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLike(String value) {
            addCriterion("mybirthd like", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotLike(String value) {
            addCriterion("mybirthd not like", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdIn(List<String> values) {
            addCriterion("mybirthd in", values, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotIn(List<String> values) {
            addCriterion("mybirthd not in", values, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdBetween(String value1, String value2) {
            addCriterion("mybirthd between", value1, value2, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotBetween(String value1, String value2) {
            addCriterion("mybirthd not between", value1, value2, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIsNull() {
            addCriterion("personalizedSignature is null");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIsNotNull() {
            addCriterion("personalizedSignature is not null");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureEqualTo(String value) {
            addCriterion("personalizedSignature =", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotEqualTo(String value) {
            addCriterion("personalizedSignature <>", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureGreaterThan(String value) {
            addCriterion("personalizedSignature >", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureGreaterThanOrEqualTo(String value) {
            addCriterion("personalizedSignature >=", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLessThan(String value) {
            addCriterion("personalizedSignature <", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLessThanOrEqualTo(String value) {
            addCriterion("personalizedSignature <=", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLike(String value) {
            addCriterion("personalizedSignature like", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotLike(String value) {
            addCriterion("personalizedSignature not like", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIn(List<String> values) {
            addCriterion("personalizedSignature in", values, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotIn(List<String> values) {
            addCriterion("personalizedSignature not in", values, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureBetween(String value1, String value2) {
            addCriterion("personalizedSignature between", value1, value2, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotBetween(String value1, String value2) {
            addCriterion("personalizedSignature not between", value1, value2, "personalizedsignature");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}